package com.bsierp.business.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

    // Fields

    private Integer userId;
    private Credentials credentials;
    private UserState userState;
    private UserType userType;
    private String userName;
    private String userPassword;
    private String userRamdoncode;
    private String userEmail;
    private String userRealname;
    private String userPhone;
    private Integer userImqq;
    private Integer userLogintimes;
    private Integer userGrade;
    private String userPhoto;
    private String credentialsNum;
    private String userAddress;
    private Integer buyercredit;
    private Integer sellercredit;
    private String userRegisttime;
    private String userActivatetime;
    private Set orderHistoriesForOrderBuyer = new HashSet(0);
    private Set contactPersonGroups = new HashSet(0);
    private Set products = new HashSet(0);
    private Set imageLibs = new HashSet(0);
    private Set orderHistoriesForOrderSeller = new HashSet(0);
    private Set messagesForSenderId = new HashSet(0);
    private Set contactPersonsForHostId = new HashSet(0);
    private Set productGroups = new HashSet(0);
    private Set employeeHistories = new HashSet(0);
    private Set messagesForReceiverId = new HashSet(0);
    private Set contactPersonsForGuestId = new HashSet(0);
    private Set employees = new HashSet(0);
    private Set ordersForOrderBuyer = new HashSet(0);
    private Set privateProducts = new HashSet(0);
    private Set ordersForOrderSeller = new HashSet(0);

    // Constructors

    /** default constructor */
    public User() {
    }

    /** minimal constructor */
    public User(Credentials credentials, UserState userState,
            UserType userType, String userName, String userPassword,
            String userRamdoncode, String userEmail, Integer userLogintimes,
            Integer userGrade, String userPhoto, Integer buyercredit,
            Integer sellercredit) {
        this.credentials = credentials;
        this.userState = userState;
        this.userType = userType;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userRamdoncode = userRamdoncode;
        this.userEmail = userEmail;
        this.userLogintimes = userLogintimes;
        this.userGrade = userGrade;
        this.userPhoto = userPhoto;
        this.buyercredit = buyercredit;
        this.sellercredit = sellercredit;
    }

    /** full constructor */
    public User(Credentials credentials, UserState userState,
            UserType userType, String userName, String userPassword,
            String userRamdoncode, String userEmail, String userRealname,
            String userPhone, Integer userImqq, Integer userLogintimes,
            Integer userGrade, String userPhoto, String credentialsNum,
            String userAddress, Integer buyercredit, Integer sellercredit,
            String userRegisttime, String userActivatetime,
            Set orderHistoriesForOrderBuyer, Set contactPersonGroups,
            Set products, Set imageLibs, Set orderHistoriesForOrderSeller,
            Set messagesForSenderId, Set contactPersonsForHostId,
            Set productGroups, Set employeeHistories,
            Set messagesForReceiverId, Set contactPersonsForGuestId,
            Set employees, Set ordersForOrderBuyer, Set privateProducts,
            Set ordersForOrderSeller) {
        this.credentials = credentials;
        this.userState = userState;
        this.userType = userType;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userRamdoncode = userRamdoncode;
        this.userEmail = userEmail;
        this.userRealname = userRealname;
        this.userPhone = userPhone;
        this.userImqq = userImqq;
        this.userLogintimes = userLogintimes;
        this.userGrade = userGrade;
        this.userPhoto = userPhoto;
        this.credentialsNum = credentialsNum;
        this.userAddress = userAddress;
        this.buyercredit = buyercredit;
        this.sellercredit = sellercredit;
        this.userRegisttime = userRegisttime;
        this.userActivatetime = userActivatetime;
        this.orderHistoriesForOrderBuyer = orderHistoriesForOrderBuyer;
        this.contactPersonGroups = contactPersonGroups;
        this.products = products;
        this.imageLibs = imageLibs;
        this.orderHistoriesForOrderSeller = orderHistoriesForOrderSeller;
        this.messagesForSenderId = messagesForSenderId;
        this.contactPersonsForHostId = contactPersonsForHostId;
        this.productGroups = productGroups;
        this.employeeHistories = employeeHistories;
        this.messagesForReceiverId = messagesForReceiverId;
        this.contactPersonsForGuestId = contactPersonsForGuestId;
        this.employees = employees;
        this.ordersForOrderBuyer = ordersForOrderBuyer;
        this.privateProducts = privateProducts;
        this.ordersForOrderSeller = ordersForOrderSeller;
    }

    // Property accessors

    public Integer getUserId() {
        return this.userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Credentials getCredentials() {
        return this.credentials;
    }

    public void setCredentials(Credentials credentials) {
        this.credentials = credentials;
    }

    public UserState getUserState() {
        return this.userState;
    }

    public void setUserState(UserState userState) {
        this.userState = userState;
    }

    public UserType getUserType() {
        return this.userType;
    }

    public void setUserType(UserType userType) {
        this.userType = userType;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return this.userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserRamdoncode() {
        return this.userRamdoncode;
    }

    public void setUserRamdoncode(String userRamdoncode) {
        this.userRamdoncode = userRamdoncode;
    }

    public String getUserEmail() {
        return this.userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserRealname() {
        return this.userRealname;
    }

    public void setUserRealname(String userRealname) {
        this.userRealname = userRealname;
    }

    public String getUserPhone() {
        return this.userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getUserImqq() {
        return this.userImqq;
    }

    public void setUserImqq(Integer userImqq) {
        this.userImqq = userImqq;
    }

    public Integer getUserLogintimes() {
        return this.userLogintimes;
    }

    public void setUserLogintimes(Integer userLogintimes) {
        this.userLogintimes = userLogintimes;
    }

    public Integer getUserGrade() {
        return this.userGrade;
    }

    public void setUserGrade(Integer userGrade) {
        this.userGrade = userGrade;
    }

    public String getUserPhoto() {
        return this.userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getCredentialsNum() {
        return this.credentialsNum;
    }

    public void setCredentialsNum(String credentialsNum) {
        this.credentialsNum = credentialsNum;
    }

    public String getUserAddress() {
        return this.userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Integer getBuyercredit() {
        return this.buyercredit;
    }

    public void setBuyercredit(Integer buyercredit) {
        this.buyercredit = buyercredit;
    }

    public Integer getSellercredit() {
        return this.sellercredit;
    }

    public void setSellercredit(Integer sellercredit) {
        this.sellercredit = sellercredit;
    }

    public String getUserRegisttime() {
        return this.userRegisttime;
    }

    public void setUserRegisttime(String userRegisttime) {
        this.userRegisttime = userRegisttime;
    }

    public String getUserActivatetime() {
        return this.userActivatetime;
    }

    public void setUserActivatetime(String userActivatetime) {
        this.userActivatetime = userActivatetime;
    }

    public Set getOrderHistoriesForOrderBuyer() {
        return this.orderHistoriesForOrderBuyer;
    }

    public void setOrderHistoriesForOrderBuyer(Set orderHistoriesForOrderBuyer) {
        this.orderHistoriesForOrderBuyer = orderHistoriesForOrderBuyer;
    }

    public Set getContactPersonGroups() {
        return this.contactPersonGroups;
    }

    public void setContactPersonGroups(Set contactPersonGroups) {
        this.contactPersonGroups = contactPersonGroups;
    }

    public Set getProducts() {
        return this.products;
    }

    public void setProducts(Set products) {
        this.products = products;
    }

    public Set getImageLibs() {
        return this.imageLibs;
    }

    public void setImageLibs(Set imageLibs) {
        this.imageLibs = imageLibs;
    }

    public Set getOrderHistoriesForOrderSeller() {
        return this.orderHistoriesForOrderSeller;
    }

    public void setOrderHistoriesForOrderSeller(Set orderHistoriesForOrderSeller) {
        this.orderHistoriesForOrderSeller = orderHistoriesForOrderSeller;
    }

    public Set getMessagesForSenderId() {
        return this.messagesForSenderId;
    }

    public void setMessagesForSenderId(Set messagesForSenderId) {
        this.messagesForSenderId = messagesForSenderId;
    }

    public Set getContactPersonsForHostId() {
        return this.contactPersonsForHostId;
    }

    public void setContactPersonsForHostId(Set contactPersonsForHostId) {
        this.contactPersonsForHostId = contactPersonsForHostId;
    }

    public Set getProductGroups() {
        return this.productGroups;
    }

    public void setProductGroups(Set productGroups) {
        this.productGroups = productGroups;
    }

    public Set getEmployeeHistories() {
        return this.employeeHistories;
    }

    public void setEmployeeHistories(Set employeeHistories) {
        this.employeeHistories = employeeHistories;
    }

    public Set getMessagesForReceiverId() {
        return this.messagesForReceiverId;
    }

    public void setMessagesForReceiverId(Set messagesForReceiverId) {
        this.messagesForReceiverId = messagesForReceiverId;
    }

    public Set getContactPersonsForGuestId() {
        return this.contactPersonsForGuestId;
    }

    public void setContactPersonsForGuestId(Set contactPersonsForGuestId) {
        this.contactPersonsForGuestId = contactPersonsForGuestId;
    }

    public Set getEmployees() {
        return this.employees;
    }

    public void setEmployees(Set employees) {
        this.employees = employees;
    }

    public Set getOrdersForOrderBuyer() {
        return this.ordersForOrderBuyer;
    }

    public void setOrdersForOrderBuyer(Set ordersForOrderBuyer) {
        this.ordersForOrderBuyer = ordersForOrderBuyer;
    }

    public Set getPrivateProducts() {
        return this.privateProducts;
    }

    public void setPrivateProducts(Set privateProducts) {
        this.privateProducts = privateProducts;
    }

    public Set getOrdersForOrderSeller() {
        return this.ordersForOrderSeller;
    }

    public void setOrdersForOrderSeller(Set ordersForOrderSeller) {
        this.ordersForOrderSeller = ordersForOrderSeller;
    }

}